package com.hui.redis.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hui.redis.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.ognl.ASTBitNegate;

import java.util.List;

/**
 * @BelongsProject: redis
 * @BelongsPackage: com.example.demo.mapper
 * @Author: HUI
 * @CreateTime: 2022-03-18 11:53
 * @Description:
 */

@Mapper
public interface UserMapper extends BaseMapper<User> {

    User findById(Integer id);

    int save(User user);

    List<User> findAll();

    void delete(Integer id);
}
